import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import './styles/common.scss'
import App from './App.vue'
import router from './router'
import { store, zwScrm } from './store'
import { lazy } from './utils/directives';

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.directive('lazy', lazy)

app.config.warnHandler = () => null
app.use(store, zwScrm).use(ElementPlus, { sizi: 'small' }).use(router).mount('#app')
